Change User And System Environment Variables In Windows 10

In the Registry Editor, navigate to following registry key:

HKey_Current_User\Environment

In order to modify system environment variables, navigate to following registry key and perform the registry manipulation as described in previous step:

HKey_Local_Machine\System\CurrentControlSet\Control\Session Manager\Environment

List of environment variables in Windows 10

The complete list of environment variables in Windows 10.


Environment Variables
Values – (variables)
%AllUsersProfile% C:\ProgramData
%AppData% C:\Users\(user-name)\AppData\Roaming
%CD% Current directory full path
%CmdCmdline% Returns exact command line used to start current cmd.exe session.
%CmdExtVersion% Number of current command processor extensions.
%CommonProgramFiles% C:\Program Files\Common Files
%CommonProgramFiles(x86)% C:\Program Files (x86)\Common Files
%CommonProgramW6432% C:\Program Files\Common Files
%ComputerName% Technoyl-PC
%ComSpec% C:\Windows\System32\cmd.exe
%Date% Current date in format determined by Date command
%ErrorLevel% Number defining exit status of previous command or program
%HomeDrive% C:
%HomePath% C:\Users\(user-name)
%LocalAppData% C:\Users\(user-name)\AppData\Local
%LogonServer% \\MicrosoftAccount
%Number_Of_Processors% 1
%OS% Windows_NT
%Path% C:\Windows

C:\Windows\system32

C:\Windows\System32\Wbem

C:\Windows\System32\WindowsPowerShell\v1.0

%PathExt% COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
%Processor_Architecture% x86
%Processor_Identifier% x86 Family 6 Model 69 Stepping 1, GenuineIntel
%Processor_Level% 6
%Processor_Revision% 4501
%ProgramData% C:\ProgramData
%ProgramFiles% C:\Program Files
%ProgramFiles(x86)% C:\Program Files (x86)
%ProgramW6432% C:\Program Files
%Prompt% Code for current command prompt format. Code is usually $P$G
%PSModulePath% C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
%Public% C:\Users\Public
%Random% To get random number between 0 and 32767
%SessionName% When logging on directly to machine, returns “Console”.

When client connects via terminal server session, is combination of

connection name, followed by pound symbol {#} and session number.

%SystemDrive% C:
%SystemRoot% C:\Windows
%Temp% C:\Users\(user-name)\AppData\Local\Temp
%Time% Current time in format determined by Time command
%Tmp% C:\Users\(user-name)\AppData\Local\Temp
%UserDomain% Technoyl-PC
%UserDomain_RoamingProfile% Technoyl-PC
%UserName% (user-name)
%UserProfile% C:\Users\(user-name)
%WinDir% C:\Windows